package cn.sofwin.day0108;

import java.util.Scanner;

public class Test01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入学生姓名：");
        String fullName = sc.next();
        int sum = 0;
        for (int i = 1; i <= 5; i++) {
            System.out.print("请输入5门功课中第" + i + "门课的成绩");
            double score = sc.nextDouble();
            sum += score;

        }
        double avg = sum / 5.0;

        System.out.println(fullName + "的平均分是：" + avg);

    }
}
